<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function getUrl(){
				let url=window.location.href
				alert(url)
			}
			function setUrl(){
			window.location.href="http://www.pzhu.cn"
			}
		</script>
	</head>
	<body>
		<button type="button"onclick="getUrl()">获取</button>
		<button type="button"onclick="setUrl()">跳转</button>
	</body>
</html>
